package cn.huaqingcheng.tool.core.function;

import java.io.Serializable;

/**
 * 可抛出异常 可序列化的 判断谓词
 *
 * @see java.util.function.Predicate
 */
@FunctionalInterface
public interface Predicate<T, E extends Throwable> extends Serializable {

    /**
     * Evaluates this predicate on the given argument.
     *
     * @param t the input argument
     * @return {@code true} if the input argument matches the predicate,
     * otherwise {@code false}
     */
    boolean test(T t) throws E;

}
